﻿#ifndef SERVER_H
#define SERVER_H

#include <QWidget>
#include <QTcpServer>
#include <QTcpSocket>

namespace Ui {
class Server;
}

class Server : public QWidget
{
    Q_OBJECT

public:
    explicit Server(QWidget *parent = 0);
    ~Server();

public slots:
    void on_sendBtn_clicked();

private:
    Ui::Server *ui;
    QTcpServer* server; // 监听的套接字
    QTcpSocket* conn;   // 通信的套接字
    QList<QTcpSocket*> sockList;
};

#endif // SERVER_H
